//
//  YTGridViewController.m
//  YUNT
//
//  Created by 小萌 on 2017/11/14.
//  Copyright © 2017年 梁炜东. All rights reserved.
//

#import "YTGridViewController.h"

@interface YTGridViewController ()

@end

@implementation YTGridViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"网格";
    [self loadData];
}
- (void)loadData
{
    YTSetModel *model1 = [[YTSetModel alloc] init];
    model1.name = @"关闭";
    model1.logo = @"46";
    YTSetModel *model2 = [[YTSetModel alloc] init];
    model2.name = @"网格线";
    model2.logo = @"47";
    
    YTSetModel *model3 = [[YTSetModel alloc] init];
    model3.name = @"网格线与对角线";
    model3.logo = @"48";
    
    YTSetModel *model4 = [[YTSetModel alloc] init];
    model4.name = @"中心点";
    model4.logo = @"49";
    
    
    self.dataArr = @[model1,model2,model3,model4];
    [self.tableView reloadData];
}
-(void)tableView:(UITableView *)tableView atIndexPath:(NSIndexPath *)indexPath
{
    [super tableView:tableView atIndexPath:indexPath];
    publicModel.gridModel = (int)indexPath.row;
    [NOTIFICATION_CENTER postNotificationName:GridNotification object:nil];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
